package org.smr.dev.service;


import org.smr.dev.dao.TableMetaDao;
import org.smr.dev.model.TableMeta;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class TableMeteService {

    @Autowired
    private TableMetaDao tableMetaDao;

    @Transactional(readOnly = true)
    public List<TableMeta> findColumn(String tableName, String tableSchema){
       return   tableMetaDao.findColumn(tableName, tableSchema);
    }

}
